package com.wicket.okrapp.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.util.RedisUtil;

import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.wicket.okrapp.base.service.MOmsAssistCheckPanelUpdateService;
import com.wicket.okrapp.dal.po.mbg.OmsAssistCheckPanelUpdate;
import com.wicket.okrapp.base.service.dto.req.QueryAssistCheckPanelUpdateDetailReq;
import com.wicket.okrapp.common.exception.Assert;
import com.wicket.okrapp.base.service.MOmsTargetCategoryService;
import com.wicket.okrapp.dal.po.mbg.OmsTargetCategory;
import com.wicket.okrapp.base.service.dto.req.QueryTargetCatDetailReq;
import com.wicket.okrapp.base.service.MOmsTargetService;
import com.wicket.okrapp.dal.po.mbg.OmsTarget;
import com.wicket.okrapp.base.service.dto.req.QueryTargetDetailReq;
import com.wicket.okrapp.base.service.MOmsTargetObjectiveService;
import com.wicket.okrapp.dal.po.mbg.OmsTargetObjective;
import com.wicket.okrapp.base.service.dto.req.QueryTargetObjDetailReq;
import com.wicket.okrapp.base.service.MOmsEvaluationObjectTargetCycleService;
//import com.wicket.okrapp.biz.service.nb.Nbundefined;
import com.wicket.okrapp.biz.service.OffStateService;
import com.wicket.okrapp.base.service.MOmsEvaBatchRelatedSetService;
import com.wicket.okrapp.dal.po.mbg.OmsEvaBatchRelatedSet;
import com.wicket.okrapp.base.service.dto.req.QueryPlanEvaBatchSetDetailReq;
import com.wicket.okrapp.base.service.MOmsVirtualOrgMemberDeptService;
import com.wicket.okrapp.dal.po.mbg.OmsVirtualOrgMemberDept;
import com.wicket.okrapp.base.service.dto.req.QueryVirtualOrgMemberDeptDetailReq;
import com.wicket.okrapp.biz.service.nb.Nbundefined;
import com.wicket.okrapp.biz.service.TargetCycleService;
import com.wicket.okrapp.biz.service.dto.common.AchievementDockingDto;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrapp.biz.service.AchievementDockService;
import com.wicket.okrapp.biz.service.TargetContentService;
import com.wicket.okrapp.biz.service.TargetCalcService;
//import com.wicket.okrapp.biz.service.nb.Nbundefined;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class NullServiceImpl implements com.wicket.okrapp.biz.service.NullService {

  @Resource
  private RedisUtil redisUtil;
@Resource
  private MOmsAssistCheckPanelUpdateService mOmsAssistCheckPanelUpdateService;
//@Resource
 //private MCustomFields2Service mCustomFields2Service;
@Resource
  private MOmsTargetCategoryService mOmsTargetCategoryService;
@Resource
  private MOmsTargetService mOmsTargetService;
@Resource
  private MOmsTargetObjectiveService mOmsTargetObjectiveService;
@Resource
  private MOmsEvaluationObjectTargetCycleService mOmsEvaluationObjectTargetCycleService;
//@Resource
//  private Nbundefined nbundefined;
@Resource
  private OffStateService offStateService;
@Resource
  private MOmsEvaBatchRelatedSetService mOmsEvaBatchRelatedSetService;
@Resource
  private MOmsVirtualOrgMemberDeptService mOmsVirtualOrgMemberDeptService;
@Resource
  private Nbundefined nbundefined;
@Resource
  private TargetCycleService targetCycleService;
//@Resource
 //private MCustomFields5Service mCustomFields5Service;
@Resource
  private AchievementDockService achievementDockService;
@Resource
  private TargetContentService targetContentService;
@Resource
  private TargetCalcService targetCalcService;
//@Resource
//  private Nbundefined nbundefined;
/**
   * D3-13更新目标自身仪表盘(公共)[4963]
   * gen by moon at 10/20/2022, 10:04:05 AM
   */
  @Trace(operationName = "D3-13更新目标自身仪表盘(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public RefreshTargetDashboardComRespDto refreshTargetDashboardCom(RefreshTargetDashboardComReqDto reqDto){
    
      
      //步骤0: 3-11-02查询检查仪表盘更新详情 - queryAssistCheckPanelUpdateDetail
     OmsAssistCheckPanelUpdate omsAssistCheckPanelUpdate = null;
    QueryAssistCheckPanelUpdateDetailReq queryAssistCheckPanelUpdateDetailReq=new QueryAssistCheckPanelUpdateDetailReq();
  queryAssistCheckPanelUpdateDetailReq.setCheckObjectTypeCode("OMS_TARGET");//sourceId:383970_1
if(reqDto!=null){
      queryAssistCheckPanelUpdateDetailReq.setCheckObjectTypeId(reqDto.getCheckObjectTypeId());//SimpleFieldAssign//sourceId:383971_1
queryAssistCheckPanelUpdateDetailReq.setCheckItemCode(reqDto.getCheckItemCode());//SimpleFieldAssign//sourceId:383972_1
    }
  
    /*3-11-02查询检查仪表盘更新详情[322]   */
    Assert.isNull(queryAssistCheckPanelUpdateDetailReq.getCheckObjectTypeCode(),"D3-13更新目标自身仪表盘(公共)-3-11-02查询检查仪表盘更新详情-检查内容对象类型编码不能为空",false);
Assert.isNull(queryAssistCheckPanelUpdateDetailReq.getCheckObjectTypeId(),"D3-13更新目标自身仪表盘(公共)-3-11-02查询检查仪表盘更新详情-检查内容对象ID 不能为空",false);
Assert.isNull(queryAssistCheckPanelUpdateDetailReq.getCheckItemCode(),"D3-13更新目标自身仪表盘(公共)-3-11-02查询检查仪表盘更新详情-检验项标识不能为空",false);
      omsAssistCheckPanelUpdate = mOmsAssistCheckPanelUpdateService.queryAssistCheckPanelUpdateDetail(queryAssistCheckPanelUpdateDetailReq);
      
      
      
    
//步骤1: 3-11-02修改检查仪表盘更新 - updateAssistCheckPanelUpdate
     boolean bOOLEAN ;
    if(omsAssistCheckPanelUpdate !=null){
          OmsAssistCheckPanelUpdate omsAssistCheckPanelUpdate_2=new OmsAssistCheckPanelUpdate();
  if(omsAssistCheckPanelUpdate!=null){
      omsAssistCheckPanelUpdate_2.setCheckItemPanelUpdateId(omsAssistCheckPanelUpdate.getCheckItemPanelUpdateId());//SimpleFieldAssign//sourceId:383977_1
    }
if(reqDto!=null){
      omsAssistCheckPanelUpdate_2.setTargetValue(reqDto.getTargetValue());//SimpleFieldAssign//sourceId:383979_1
omsAssistCheckPanelUpdate_2.setActualValue(reqDto.getActualValue());//SimpleFieldAssign//sourceId:383978_1
    }
  
    /*3-11-02修改检查仪表盘更新[320]   */
    Assert.isNull(omsAssistCheckPanelUpdate_2.getCheckItemPanelUpdateId(),"D3-13更新目标自身仪表盘(公共)-3-11-02修改检查仪表盘更新-检查仪表盘更新记录ID 不能为空",false);
      bOOLEAN = mOmsAssistCheckPanelUpdateService.updateAssistCheckPanelUpdate(omsAssistCheckPanelUpdate_2);
      
      
      
           }
    
RefreshTargetDashboardComRespDto retData = new RefreshTargetDashboardComRespDto();
  
  

  
  
return retData;
  }
/**
   * D3查询当前目标内容信息详情(公共)[5621]
   * gen by moon at 1/9/2023, 7:00:43 PM
   */
  @Trace(operationName = "D3查询当前目标内容信息详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryCurrentTargetContentInfoDetailComRespDto queryCurrentTargetContentInfoDetailCom(QueryCurrentTargetContentInfoDetailComReqDto reqDto){


      ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_1 =null;
OmsTargetCategory omsTargetCategory_1 =null;
OmsTarget omsTarget_1 =null;
ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_3 =null;
OmsTargetCategory omsTargetCategory_3 =null;
ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_5 =null;
OmsTargetObjective omsTargetObjective_1 =null;
OmsTargetObjective omsTargetObjective_3 =null;
ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_8 =null;
//virtualUsage M3执行业务应用构造出入参字段（特殊方法）  26652
      //ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes = null;
    ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq=new ImplementBizConstructAccessParameterFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setAssistNodeTypeObjectId(reqDto.getAssistNodeTypeObjectId());//SimpleFieldAssign//sourceId:588212_1_26652
receptionServiceReq.setAssistNodeTypeCode(reqDto.getAssistNodeTypeCode());//SimpleFieldAssign//sourceId:588211_1_26652
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:587478_1_26652
    }

    /*M3执行业务应用构造出入参字段（特殊方法）[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getAssistNodeTypeObjectId(),"D3查询当前目标内容信息详情(公共)-M3执行业务应用构造出入参字段（特殊方法）-节点内容对象实例ID不能为空",false);
Assert.isNull(receptionServiceReq.getAssistNodeTypeCode(),"D3查询当前目标内容信息详情(公共)-M3执行业务应用构造出入参字段（特殊方法）-节点内容对象类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D3查询当前目标内容信息详情(公共)-M3执行业务应用构造出入参字段（特殊方法）-评价模板ID不能为空",false);
      //receptionServiceRes = nbundefined.implementBizConstructAccessParameterField(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
if((reqDto!= null&&  reqDto.getAssistNodeTypeCode() !=null && reqDto.getAssistNodeTypeCode().equals("OMS_TARGET_CATEGORY"))) {
        //if(D3补充目标内容检查项状态等处理(公共).节点内容对象类型编码 等于 目标分类表)  26653

OmsTargetCategory omsTargetCategory = null;
    QueryTargetCatDetailReq queryTargetCatDetailReq=new QueryTargetCatDetailReq();
  queryTargetCatDetailReq.setSubjectLifeCycle("EDITING");//sourceId:588547_1_26655
if(reqDto!=null){
      queryTargetCatDetailReq.setTargetCategoryId(reqDto.getAssistNodeTypeObjectId());//SimpleFieldAssign//sourceId:587572_1_26655
    }

    /*3-3-02查当前目标分类详情[2595]   */
    Assert.isNull(queryTargetCatDetailReq.getTargetCategoryId(),"D3查询当前目标内容信息详情(公共)-3-3-02查当前目标分类详情-目标分类ID不能为空",false);
Assert.isNull(queryTargetCatDetailReq.getEvaluationTemplateId(),"D3查询当前目标内容信息详情(公共)-3-3-02查当前目标分类详情-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetCatDetailReq.getSubjectLifeCycle(),"D3查询当前目标内容信息详情(公共)-3-3-02查当前目标分类详情-主体生命周期不能为空",false);
      omsTargetCategory = mOmsTargetCategoryService.queryTargetCatDetail(queryTargetCatDetailReq);
      Assert.isTrue(omsTargetCategory== null||  omsTargetCategory.getTargetCategoryId() ==null,"找不到数据，系统异常",false);

      omsTargetCategory_1 = omsTargetCategory;
if((omsTargetCategory!= null&& omsTargetCategory.getParentTargetId() != null &&omsTargetCategory!= null&& omsTargetCategory.getParentTtargetCategoryId() == null )) {
        //if((3-3-02查当前目标分类详情.归属父级目标ID 值不等于空  and 3-3-02查当前目标分类详情.归属父级目标分类ID 值等于空 ))  26657

OmsTarget omsTarget = null;
    if(omsTargetCategory !=null){
          QueryTargetDetailReq queryTargetDetailReq=new QueryTargetDetailReq();
  queryTargetDetailReq.setIsArchive("FALSE");//sourceId:588097_1_26659
queryTargetDetailReq.setArchivngType("NOT_ARCHIVE");//sourceId:588108_1_26659
if(omsTargetCategory!=null){
      queryTargetDetailReq.setTargetId(omsTargetCategory.getParentTargetId());//SimpleFieldAssign//sourceId:588103_1_26659
    }
if(reqDto!=null){
      queryTargetDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:588096_1_26659
    }

    /*3-3-01查上级目标详情[2488]   */
    Assert.isNull(queryTargetDetailReq.getTargetId(),"D3查询当前目标内容信息详情(公共)-3-3-01查上级目标详情-目标ID不能为空",false);
Assert.isNull(queryTargetDetailReq.getEvaluationTemplateId(),"D3查询当前目标内容信息详情(公共)-3-3-01查上级目标详情-归属评价模板ID不能为空",false);
Assert.isNull(queryTargetDetailReq.getIsArchive(),"D3查询当前目标内容信息详情(公共)-3-3-01查上级目标详情-是否存档不能为空",false);
Assert.isNull(queryTargetDetailReq.getArchivngType(),"D3查询当前目标内容信息详情(公共)-3-3-01查上级目标详情-存档类型不能为空",false);
      omsTarget = mOmsTargetService.queryTargetDetail(queryTargetDetailReq);
      Assert.isTrue(omsTarget== null||  omsTarget.getTargetId() ==null,"找不到数据，系统异常",false);

      omsTarget_1 = omsTarget;
           }
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_2 = null;
    if(omsTarget !=null){
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_1=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_1.setTableTypeCode("OMS_TARGET");//sourceId:588542_1_26666
if(omsTarget!=null){
      receptionServiceReq_1.setEntityId(omsTarget.getTargetId());//SimpleFieldAssign//sourceId:588543_1_26666
    }

    /*M3传输冗余内容表类型编码为“目标”[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getTableTypeCode(),"D3查询当前目标内容信息详情(公共)-M3传输冗余内容表类型编码为“目标”-冗余内容表类型编码不能为空",false);
Assert.isNull(receptionServiceReq_1.getEntityId(),"D3查询当前目标内容信息详情(公共)-M3传输冗余内容表类型编码为“目标”-冗余内容表主键ID不能为空",false);
      //receptionServiceRes_2 = nbundefined.implementBizConstructAccessParameterField(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
           }
      }
else if((omsTargetCategory!= null&& omsTargetCategory.getParentTtargetCategoryId() != null &&omsTargetCategory!= null&& omsTargetCategory.getParentTargetId() == null )){
       //elseif((3-3-02查当前目标分类详情.归属父级目标分类ID 值不等于空  and 3-3-02查当前目标分类详情.归属父级目标ID 值等于空 ))  26658

OmsTargetCategory omsTargetCategory_2 = null;
    if(omsTargetCategory !=null){
          QueryTargetCatDetailReq queryTargetCatDetailReq_1=new QueryTargetCatDetailReq();
  queryTargetCatDetailReq_1.setIsArchive("FALSE");//sourceId:588200_1_26660
queryTargetCatDetailReq_1.setArchivngType("NOT_ARCHIVE");//sourceId:588201_1_26660
if(omsTargetCategory!=null){
      queryTargetCatDetailReq_1.setTargetCategoryId(omsTargetCategory.getParentTtargetCategoryId());//SimpleFieldAssign//sourceId:588198_1_26660
    }
if(reqDto!=null){
      queryTargetCatDetailReq_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:588199_1_26660
    }

    /*3-3-02查上级目标分类详情[2595]   */
    Assert.isNull(queryTargetCatDetailReq_1.getTargetCategoryId(),"D3查询当前目标内容信息详情(公共)-3-3-02查上级目标分类详情-目标分类ID不能为空",false);
Assert.isNull(queryTargetCatDetailReq_1.getEvaluationTemplateId(),"D3查询当前目标内容信息详情(公共)-3-3-02查上级目标分类详情-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetCatDetailReq_1.getIsArchive(),"D3查询当前目标内容信息详情(公共)-3-3-02查上级目标分类详情-是否存档不能为空",false);
Assert.isNull(queryTargetCatDetailReq_1.getArchivngType(),"D3查询当前目标内容信息详情(公共)-3-3-02查上级目标分类详情-存档类型不能为空",false);
      omsTargetCategory_2 = mOmsTargetCategoryService.queryTargetCatDetail(queryTargetCatDetailReq_1);
      Assert.isTrue(omsTargetCategory_2== null||  omsTargetCategory_2.getTargetCategoryId() ==null,"找不到数据，系统异常",false);

      omsTargetCategory_3 = omsTargetCategory_2;
           }
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_4 = null;
    if(omsTargetCategory_2 !=null){
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_2=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_2.setTableTypeCode("OMS_TARGET_CATEGORY");//sourceId:589228_1_26667
if(omsTargetCategory_2!=null){
      receptionServiceReq_2.setEntityId(omsTargetCategory_2.getTargetCategoryId());//SimpleFieldAssign//sourceId:589229_1_26667
    }

    /*M3传输冗余内容表类型编码为“目标分类”[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_2.getTableTypeCode(),"D3查询当前目标内容信息详情(公共)-M3传输冗余内容表类型编码为“目标分类”-冗余内容表类型编码不能为空",false);
Assert.isNull(receptionServiceReq_2.getEntityId(),"D3查询当前目标内容信息详情(公共)-M3传输冗余内容表类型编码为“目标分类”-冗余内容表主键ID不能为空",false);
     // receptionServiceRes_4 = nbundefined.implementBizConstructAccessParameterField(receptionServiceReq_2);


      receptionServiceRes_5 = receptionServiceRes_4;
           }
    }
      }
else if((reqDto!= null&&  reqDto.getAssistNodeTypeCode() !=null && reqDto.getAssistNodeTypeCode().equals("OMS_TARGET_OBJECTIVE"))){
       //elseif(D3补充目标内容检查项状态等处理(公共).节点内容对象类型编码 等于 指标表)  26654

OmsTargetObjective omsTargetObjective = null;
    QueryTargetObjDetailReq queryTargetObjDetailReq=new QueryTargetObjDetailReq();
  queryTargetObjDetailReq.setSubjectLifeCycle("EDITING");//sourceId:588210_1_26656
if(reqDto!=null){
      queryTargetObjDetailReq.setObjectiveId(reqDto.getAssistNodeTypeObjectId());//SimpleFieldAssign//sourceId:587580_1_26656
queryTargetObjDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:587581_1_26656
    }

    /*3-3-03查当前指标详情[2697]   */
    Assert.isNull(queryTargetObjDetailReq.getObjectiveId(),"D3查询当前目标内容信息详情(公共)-3-3-03查当前指标详情-指标ID不能为空",false);
Assert.isNull(queryTargetObjDetailReq.getEvaluationTemplateId(),"D3查询当前目标内容信息详情(公共)-3-3-03查当前指标详情-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetObjDetailReq.getSubjectLifeCycle(),"D3查询当前目标内容信息详情(公共)-3-3-03查当前指标详情-主体生命周期不能为空",false);
      omsTargetObjective = mOmsTargetObjectiveService.queryTargetObjDetail(queryTargetObjDetailReq);
      Assert.isTrue(omsTargetObjective== null||  omsTargetObjective.getObjectiveId() ==null,"找不到数据，系统异常",false);

      omsTargetObjective_1 = omsTargetObjective;
if((omsTargetObjective!= null&& omsTargetObjective.getParentTargetCategoryId() != null &&omsTargetObjective!= null&& omsTargetObjective.getParentObjectiveId() == null )) {
        //if((3-3-03查当前指标详情.归属父级目标分类ID 值不等于空  and 3-3-03查当前指标详情.归属父级指标ID 值等于空 ))  26661

OmsTargetCategory omsTargetCategory_4 = null;
    if(omsTargetObjective !=null){
          QueryTargetCatDetailReq queryTargetCatDetailReq_2=new QueryTargetCatDetailReq();
  queryTargetCatDetailReq_2.setIsArchive("FALSE");//sourceId:588200_1_26663
queryTargetCatDetailReq_2.setArchivngType("NOT_ARCHIVE");//sourceId:588201_1_26663
if(omsTargetObjective!=null){
      queryTargetCatDetailReq_2.setTargetCategoryId(omsTargetObjective.getParentTargetCategoryId());//SimpleFieldAssign//sourceId:588198_1_26663
    }
if(reqDto!=null){
      queryTargetCatDetailReq_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:588199_1_26663
    }

    /*3-3-02查上级目标分类详情[2595]   */
    Assert.isNull(queryTargetCatDetailReq_2.getTargetCategoryId(),"D3查询当前目标内容信息详情(公共)-3-3-02查上级目标分类详情-目标分类ID不能为空",false);
Assert.isNull(queryTargetCatDetailReq_2.getEvaluationTemplateId(),"D3查询当前目标内容信息详情(公共)-3-3-02查上级目标分类详情-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetCatDetailReq_2.getIsArchive(),"D3查询当前目标内容信息详情(公共)-3-3-02查上级目标分类详情-是否存档不能为空",false);
Assert.isNull(queryTargetCatDetailReq_2.getArchivngType(),"D3查询当前目标内容信息详情(公共)-3-3-02查上级目标分类详情-存档类型不能为空",false);
      omsTargetCategory_4 = mOmsTargetCategoryService.queryTargetCatDetail(queryTargetCatDetailReq_2);
      Assert.isTrue(omsTargetCategory_4== null||  omsTargetCategory_4.getTargetCategoryId() ==null,"找不到数据，系统异常",false);

      omsTargetCategory_3 = omsTargetCategory_4;
           }
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_6 = null;
    if(omsTargetCategory_4 !=null){
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_3=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_3.setTableTypeCode("OMS_TARGET_CATEGORY");//sourceId:589228_1_26668
if(omsTargetCategory_4!=null){
      receptionServiceReq_3.setEntityId(omsTargetCategory_4.getTargetCategoryId());//SimpleFieldAssign//sourceId:589229_1_26668
    }

    /*M3传输冗余内容表类型编码为“目标分类”[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_3.getTableTypeCode(),"D3查询当前目标内容信息详情(公共)-M3传输冗余内容表类型编码为“目标分类”-冗余内容表类型编码不能为空",false);
Assert.isNull(receptionServiceReq_3.getEntityId(),"D3查询当前目标内容信息详情(公共)-M3传输冗余内容表类型编码为“目标分类”-冗余内容表主键ID不能为空",false);
      //receptionServiceRes_6 = nbundefined.implementBizConstructAccessParameterField(receptionServiceReq_3);


      receptionServiceRes_5 = receptionServiceRes_6;
           }
      }
else if((omsTargetObjective!= null&& omsTargetObjective.getParentObjectiveId() != null &&omsTargetObjective!= null&& omsTargetObjective.getParentTargetCategoryId() == null )){
       //elseif((3-3-03查当前指标详情.归属父级指标ID 值不等于空  and 3-3-03查当前指标详情.归属父级目标分类ID 值等于空 ))  26662

OmsTargetObjective omsTargetObjective_2 = null;
    if(omsTargetObjective !=null){
          QueryTargetObjDetailReq queryTargetObjDetailReq_1=new QueryTargetObjDetailReq();
  queryTargetObjDetailReq_1.setIsArchive("FALSE");//sourceId:588206_1_26664
queryTargetObjDetailReq_1.setArchivngType("NOT_ARCHIVE");//sourceId:588207_1_26664
if(omsTargetObjective!=null){
      queryTargetObjDetailReq_1.setObjectiveId(omsTargetObjective.getParentObjectiveId());//SimpleFieldAssign//sourceId:588204_1_26664
    }
if(reqDto!=null){
      queryTargetObjDetailReq_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:588205_1_26664
    }

    /*3-3-03查上级指标详情[2697]   */
    Assert.isNull(queryTargetObjDetailReq_1.getObjectiveId(),"D3查询当前目标内容信息详情(公共)-3-3-03查上级指标详情-指标ID不能为空",false);
Assert.isNull(queryTargetObjDetailReq_1.getEvaluationTemplateId(),"D3查询当前目标内容信息详情(公共)-3-3-03查上级指标详情-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetObjDetailReq_1.getIsArchive(),"D3查询当前目标内容信息详情(公共)-3-3-03查上级指标详情-是否存档不能为空",false);
Assert.isNull(queryTargetObjDetailReq_1.getArchivngType(),"D3查询当前目标内容信息详情(公共)-3-3-03查上级指标详情-存档类型不能为空",false);
      omsTargetObjective_2 = mOmsTargetObjectiveService.queryTargetObjDetail(queryTargetObjDetailReq_1);
      Assert.isTrue(omsTargetObjective_2== null||  omsTargetObjective_2.getObjectiveId() ==null,"找不到数据，系统异常",false);

      omsTargetObjective_3 = omsTargetObjective_2;
           }
//ModelCode: receptionService
        ImplementBizConstructAccessParameterFieldRespDto receptionServiceRes_7 = null;
    if(omsTargetObjective_2 !=null){
          ImplementBizConstructAccessParameterFieldReqDto receptionServiceReq_4=new ImplementBizConstructAccessParameterFieldReqDto();
  receptionServiceReq_4.setTableTypeCode("OMS_TARGET_OBJECTIVE");//sourceId:589236_1_26669
if(omsTargetObjective_2!=null){
      receptionServiceReq_4.setEntityId(omsTargetObjective_2.getObjectiveId());//SimpleFieldAssign//sourceId:589237_1_26669
    }

    /*M3传输冗余内容表类型编码为“指标”[4518]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_4.getTableTypeCode(),"D3查询当前目标内容信息详情(公共)-M3传输冗余内容表类型编码为“指标”-冗余内容表类型编码不能为空",false);
Assert.isNull(receptionServiceReq_4.getEntityId(),"D3查询当前目标内容信息详情(公共)-M3传输冗余内容表类型编码为“指标”-冗余内容表主键ID不能为空",false);
      //receptionServiceRes_7 = nbundefined.implementBizConstructAccessParameterField(receptionServiceReq_4);


      receptionServiceRes_8 = receptionServiceRes_7;
           }
    }
    }
QueryCurrentTargetContentInfoDetailComRespDto retData = new QueryCurrentTargetContentInfoDetailComRespDto();
  if(omsTarget_1!=null){
      retData.setPeriodicModeTypeCode(omsTarget_1.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:588567_1
    }
if(omsTargetCategory_3!=null){
      retData.setPeriodicModeTypeCode(omsTargetCategory_3.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:588567_1
    }
if(omsTargetObjective_3!=null){
      retData.setPeriodicModeTypeCode(omsTargetObjective_3.getPeriodicModeTypeCode());//SimpleFieldAssign//sourceId:588567_1
    }
if(receptionServiceRes_3!=null){
      retData.setParentTableTypeCode(receptionServiceRes_3.getTableTypeCode());//SimpleFieldAssign//sourceId:589240_1
retData.setParentTargetContId(receptionServiceRes_3.getEntityId());//SimpleFieldAssign//sourceId:589241_1
    }
if(receptionServiceRes_5!=null){
      retData.setParentTableTypeCode(receptionServiceRes_5.getTableTypeCode());//SimpleFieldAssign//sourceId:589240_1
retData.setParentTargetContId(receptionServiceRes_5.getEntityId());//SimpleFieldAssign//sourceId:589241_1
    }
if(receptionServiceRes_8!=null){
      retData.setParentTableTypeCode(receptionServiceRes_8.getTableTypeCode());//SimpleFieldAssign//sourceId:589240_1
retData.setParentTargetContId(receptionServiceRes_8.getEntityId());//SimpleFieldAssign//sourceId:589241_1
    }
if(receptionServiceRes_1!=null){
      retData.setAssistNodeTypeObjectId(receptionServiceRes_1.getAssistNodeTypeObjectId());//SimpleFieldAssign//sourceId:588221_1
retData.setAssistNodeTypeCode(receptionServiceRes_1.getAssistNodeTypeCode());//SimpleFieldAssign//sourceId:588222_1
    }
if(omsTargetCategory_1!=null){
      retData.setLevelNumber(omsTargetCategory_1.getLevelNumber());//SimpleFieldAssign//sourceId:588568_1
retData.setTargetId(omsTargetCategory_1.getTargetId());//SimpleFieldAssign//sourceId:589775_1
retData.setEvaluationTemplateId(omsTargetCategory_1.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:589776_1
    }
if(omsTargetObjective_1!=null){
      retData.setLevelNumber(omsTargetObjective_1.getLevelNumber());//SimpleFieldAssign//sourceId:588568_1
retData.setTargetId(omsTargetObjective_1.getTargetId());//SimpleFieldAssign//sourceId:589775_1
retData.setEvaluationTemplateId(omsTargetObjective_1.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:589776_1
    }




return retData;
  }
/**
   * D3执行处理末级指标父子状态及仪表盘(公共)[5664]
   * gen by moon at 1/12/2023, 5:26:54 AM
   */
  @Trace(operationName = "D3执行处理末级指标父子状态及仪表盘(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementDisposeLastObjectiveDashNodeStatusComRespDto implementDisposeLastObjectiveDashNodeStatusCom(ImplementDisposeLastObjectiveDashNodeStatusComReqDto reqDto){


      //步骤0: M3获取接收外部字段(特殊方法） - obtainReceiveOutField
     //ModelCode: receptionService
        ObtainReceiveOutFieldRespDto receptionServiceRes = null;
    ObtainReceiveOutFieldReqDto receptionServiceReq=new ObtainReceiveOutFieldReqDto();
  if(reqDto!=null){
      receptionServiceReq.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:601374_1
receptionServiceReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:601375_1
receptionServiceReq.setObjectTypeCode(reqDto.getObjectTypeCode());//SimpleFieldAssign//sourceId:601372_1
receptionServiceReq.setObjectId(reqDto.getObjectId());//SimpleFieldAssign//sourceId:601373_1
receptionServiceReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:601371_1
    }

    /*M3获取接收外部字段(特殊方法）[4608]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getTableTypeCode(),"D3执行处理末级指标父子状态及仪表盘(公共)-M3获取接收外部字段(特殊方法）-冗余内容表类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getEntityId(),"D3执行处理末级指标父子状态及仪表盘(公共)-M3获取接收外部字段(特殊方法）-冗余内容表主键ID不能为空",false);
Assert.isNull(receptionServiceReq.getObjectTypeCode(),"D3执行处理末级指标父子状态及仪表盘(公共)-M3获取接收外部字段(特殊方法）-归属对象类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getObjectId(),"D3执行处理末级指标父子状态及仪表盘(公共)-M3获取接收外部字段(特殊方法）-归属对象内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getThemeContentId(),"D3执行处理末级指标父子状态及仪表盘(公共)-M3获取接收外部字段(特殊方法）-主题内容ID不能为空",false);
//      receptionServiceRes = nbundefined.obtainReceiveOutField(receptionServiceReq);




//步骤1: D3更新内容节点下级完成状态(公共) - refreshAssistNodeSubordinateFinishStatusCom
     RefreshAssistNodeSubordinateFinishStatusComRespDto refreshAssistNodeSubordinateFinishStatusComRespDto = null;
    RefreshAssistNodeSubordinateFinishStatusComReqDto refreshAssistNodeSubordinateFinishStatusComReqDto=new RefreshAssistNodeSubordinateFinishStatusComReqDto();
  refreshAssistNodeSubordinateFinishStatusComReqDto.setNextNodeDoneNum(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:601111_1
refreshAssistNodeSubordinateFinishStatusComReqDto.setNextNodeNum(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:601112_1
refreshAssistNodeSubordinateFinishStatusComReqDto.setIsCheckItemPanel("FALSE");//sourceId:601113_1
refreshAssistNodeSubordinateFinishStatusComReqDto.setNextLevelComplete("TRUE");//sourceId:601114_1
refreshAssistNodeSubordinateFinishStatusComReqDto.setDisplayStatus("HAVE_ARRANGE");//sourceId:601115_1
if(reqDto!=null){
      refreshAssistNodeSubordinateFinishStatusComReqDto.setAssistNodeTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:601107_1
refreshAssistNodeSubordinateFinishStatusComReqDto.setAssistNodeTypeObjectId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:601106_1
refreshAssistNodeSubordinateFinishStatusComReqDto.setObjectTypeCode(reqDto.getObjectTypeCode());//SimpleFieldAssign//sourceId:601108_1
refreshAssistNodeSubordinateFinishStatusComReqDto.setObjectId(reqDto.getObjectId());//SimpleFieldAssign//sourceId:601109_1
refreshAssistNodeSubordinateFinishStatusComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:601110_1
    }

    /*D3更新内容节点下级完成状态(公共)[5616]   */
    Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getAssistNodeTypeCode(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-节点内容对象类型编码不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getAssistNodeTypeObjectId(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-节点内容对象实例ID不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getObjectTypeCode(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-归属对象类型编码不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getObjectId(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-归属对象内容ID不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getThemeContentId(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-主题内容ID不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getNextNodeDoneNum(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-统计下级节点已完成数量不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getNextNodeNum(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-统计下级节点数量不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getIsCheckItemPanel(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-是否有下级检查仪表盘 不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getNextLevelComplete(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-是否下级完成不能为空",false);
Assert.isNull(refreshAssistNodeSubordinateFinishStatusComReqDto.getDisplayStatus(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3更新内容节点下级完成状态(公共)-展示状态不能为空",false);
      refreshAssistNodeSubordinateFinishStatusComRespDto = offStateService.refreshAssistNodeSubordinateFinishStatusCom(refreshAssistNodeSubordinateFinishStatusComReqDto);




//步骤2: D3-11删除目标内容仪表盘(公共) - deleteTargetContCheckItemPanelCom
     DeleteTargetContCheckItemPanelComRespDto deleteTargetContCheckItemPanelComRespDto = null;
    DeleteTargetContCheckItemPanelComReqDto deleteTargetContCheckItemPanelComReqDto=new DeleteTargetContCheckItemPanelComReqDto();
  deleteTargetContCheckItemPanelComReqDto.setThemeContentTypeCode("OMS_EVALUATION_TEMPLATE");//sourceId:601126_1
if(reqDto!=null){
      deleteTargetContCheckItemPanelComReqDto.setCheckObjectTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:601116_1
deleteTargetContCheckItemPanelComReqDto.setCheckObjectTypeId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:601117_1
deleteTargetContCheckItemPanelComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:601127_1
    }

    /*D3-11删除目标内容仪表盘(公共)[4797]   */
    Assert.isNull(deleteTargetContCheckItemPanelComReqDto.getCheckObjectTypeCode(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3-11删除目标内容仪表盘(公共)-检查内容对象类型编码不能为空",false);
Assert.isNull(deleteTargetContCheckItemPanelComReqDto.getCheckObjectTypeId(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3-11删除目标内容仪表盘(公共)-检查内容对象ID 不能为空",false);
Assert.isNull(deleteTargetContCheckItemPanelComReqDto.getThemeContentTypeCode(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3-11删除目标内容仪表盘(公共)-主题内容类型编码不能为空",false);
Assert.isNull(deleteTargetContCheckItemPanelComReqDto.getThemeContentId(),"D3执行处理末级指标父子状态及仪表盘(公共)-D3-11删除目标内容仪表盘(公共)-主题内容ID不能为空",false);
      deleteTargetContCheckItemPanelComRespDto = offStateService.deleteTargetContCheckItemPanelCom(deleteTargetContCheckItemPanelComReqDto);




ImplementDisposeLastObjectiveDashNodeStatusComRespDto retData = new ImplementDisposeLastObjectiveDashNodeStatusComRespDto();





return retData;
  }
/**
   * D3更新方案开通记录授权使用类型状态(公共)[5715]
   * gen by moon at 1/17/2023, 4:17:56 AM
   */
  @Trace(operationName = "D3更新方案开通记录授权使用类型状态(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public RefreshSchemeOpenRecordAuthUseTypeComRespDto refreshSchemeOpenRecordAuthUseTypeCom(RefreshSchemeOpenRecordAuthUseTypeComReqDto reqDto){


      //virtualUsage 2-3-12查询方案开通记录详情  27376
//      String unknown = null;
//    Object querySchemeOpenRecordDetailReq=new Object();
//  querySchemeOpenRecordDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:612976_1_27376
//if(reqDto!=null){
//      querySchemeOpenRecordDetailReq=reqDto.getConfSchemeId();;//SimpleFieldAssign//sourceId:612973_1_27376
//querySchemeOpenRecordDetailReq=reqDto.getTenantSpaceId();;//SimpleFieldAssign//sourceId:612975_1_27376
//    }
//
//    /*2-3-12查询方案开通记录详情[1954]   */
//    Assert.isNull(querySchemeOpenRecordDetailReq,"D3更新方案开通记录授权使用类型状态(公共)-2-3-12查询方案开通记录详情-配置方案ID不能为空",false);
//Assert.isNull(querySchemeOpenRecordDetailReq,"D3更新方案开通记录授权使用类型状态(公共)-2-3-12查询方案开通记录详情-租户空间ID不能为空",false);
//Assert.isNull(querySchemeOpenRecordDetailReq,"D3更新方案开通记录授权使用类型状态(公共)-2-3-12查询方案开通记录详情-主体生命周期不能为空",false);
//      unknown = mOmsSchemeOpenRecordService.querySchemeOpenRecordDetail(querySchemeOpenRecordDetailReq);
//
//
//
//if((unknown != null )&&(unknown!= null&& unknown == "CYCLE_TIME"||unknown!= null&& unknown == "FIXED_TIME")) {
//        //if(2-3-12查询方案开通记录详情.出参 值不等于空  and (2-3-12查询方案开通记录详情.授权类型 等于 周期时间型 or 2-3-12查询方案开通记录详情.授权类型 等于 固定时间型))  27377
//
//Object unknown_2 = null;
//    if(unknown !=null){
//          Object updateSchemeOpenRecordReq=new Object();
//  updateSchemeOpenRecordReq.setAuthUseType("EXPIRE__DISABLED");//sourceId:612997_1_27378
//if(unknown!=null){
//      updateSchemeOpenRecordReq=unknown;;//SimpleFieldAssign//sourceId:612852_1_27378
//    }
//
//    /*2-3-12修改方案开通记录（到期不可用）[1952]   */
//    Assert.isNull(updateSchemeOpenRecordReq,"D3更新方案开通记录授权使用类型状态(公共)-2-3-12修改方案开通记录（到期不可用）-方案开通记录ID不能为空",false);
//Assert.isNull(updateSchemeOpenRecordReq,"D3更新方案开通记录授权使用类型状态(公共)-2-3-12修改方案开通记录（到期不可用）-授权使用类型不能为空",false);
//      unknown_2 = mOmsSchemeOpenRecordService.updateSchemeOpenRecord(updateSchemeOpenRecordReq);
//
//
//
//           }
//      }
//else if((unknown != null &&unknown!= null&& unknown == "QUANTITY")){
//       //elseif((2-3-12查询方案开通记录详情.出参 值不等于空  and 2-3-12查询方案开通记录详情.授权类型 等于 数量型))  27379
//
//Object unknown_3 = null;
//    if(unknown !=null){
//          Object updateSchemeOpenRecordReq_1=new Object();
//  updateSchemeOpenRecordReq_1.setRemainingQty(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:612999_1_27380
//updateSchemeOpenRecordReq_1.setAuthUseType("QUANTITY_INS_DISABLED");//sourceId:613005_1_27380
//if(unknown!=null){
//      updateSchemeOpenRecordReq_1=unknown;;//SimpleFieldAssign//sourceId:612998_1_27380
//    }
//
//    /*2-3-12修改方案开通记录（数量不足不可用）[1952]   */
//    Assert.isNull(updateSchemeOpenRecordReq_1,"D3更新方案开通记录授权使用类型状态(公共)-2-3-12修改方案开通记录（数量不足不可用）-方案开通记录ID不能为空",false);
//Assert.isNull(updateSchemeOpenRecordReq_1,"D3更新方案开通记录授权使用类型状态(公共)-2-3-12修改方案开通记录（数量不足不可用）-剩余授权数不能为空",false);
//Assert.isNull(updateSchemeOpenRecordReq_1,"D3更新方案开通记录授权使用类型状态(公共)-2-3-12修改方案开通记录（数量不足不可用）-授权使用类型不能为空",false);
//      unknown_3 = mOmsSchemeOpenRecordService.updateSchemeOpenRecord(updateSchemeOpenRecordReq_1);
//
//
//
//           }
//    }
RefreshSchemeOpenRecordAuthUseTypeComRespDto retData = new RefreshSchemeOpenRecordAuthUseTypeComRespDto();





return retData;
  }
/**
   * D3执行分析目标内容操作超级管理场景(公共)[5843]
   * gen by moon at 2/6/2023, 12:30:29 AM
   */
  @Trace(operationName = "D3执行分析目标内容操作超级管理场景(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementAnalyseTargetContOperateSuperMgtSceneComRespDto implementAnalyseTargetContOperateSuperMgtSceneCom(ImplementAnalyseTargetContOperateSuperMgtSceneComReqDto reqDto){


      ImplementAccessParameterBizFieldRespDto receptionServiceRes_1 =null;
if((reqDto!= null&&  reqDto.getTableTypeCode() !=null && reqDto.getTableTypeCode().equals("OMS_TARGET_CATEGORY")&&reqDto!= null&& reqDto.getLevelNumber() == 1L)||(reqDto!= null&&  reqDto.getTableTypeCode() !=null && reqDto.getTableTypeCode().equals("OMS_TARGET_OBJECTIVE"))) {
        //if((D3执行分析目标内容操作超级管理场景(公共).内容表类型编码 等于 目标分类表 and D3执行分析目标内容操作超级管理场景(公共).层级 等于 1) or D3执行分析目标内容操作超级管理场景(公共).内容表类型编码 等于 指标表)  28753

OmsEvaBatchRelatedSet omsEvaBatchRelatedSet = null;
    QueryPlanEvaBatchSetDetailReq queryPlanEvaBatchSetDetailReq=new QueryPlanEvaBatchSetDetailReq();
  queryPlanEvaBatchSetDetailReq.setBatchSetObjectType("TOP_EVA_TEMP_MGT");//sourceId:651242_1_28754
if(reqDto!=null){
      queryPlanEvaBatchSetDetailReq.setBatchSetId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:651241_1_28754
    }

    /*3-3-09-03查询评价模板批次设置详情[2998]   */
    Assert.isNull(queryPlanEvaBatchSetDetailReq.getBatchSetId(),"D3执行分析目标内容操作超级管理场景(公共)-3-3-09-03查询评价模板批次设置详情-批次设置对象ID不能为空",false);
Assert.isNull(queryPlanEvaBatchSetDetailReq.getBatchSetObjectType(),"D3执行分析目标内容操作超级管理场景(公共)-3-3-09-03查询评价模板批次设置详情-批次设置对象类型不能为空",false);
      omsEvaBatchRelatedSet = mOmsEvaBatchRelatedSetService.queryPlanEvaBatchSetDetail(queryPlanEvaBatchSetDetailReq);



//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes = null;
    if(omsEvaBatchRelatedSet !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq=new ImplementAccessParameterBizFieldReqDto();
  if(omsEvaBatchRelatedSet!=null){
      receptionServiceReq.setMgtType(omsEvaBatchRelatedSet.getMgtType());//SimpleFieldAssign//sourceId:651509_1_28804
//receptionServiceReq.setIsSuperMgt(omsEvaBatchRelatedSet.getIsSuperMgt());//SimpleFieldAssign//sourceId:651510_1_28804
    }

    /*M3接收出参字段[5797]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getMgtType(),"D3执行分析目标内容操作超级管理场景(公共)-M3接收出参字段-管理类型不能为空",false);
Assert.isNull(receptionServiceReq.getIsSuperMgt(),"D3执行分析目标内容操作超级管理场景(公共)-M3接收出参字段-是否超级管理不能为空",false);
      receptionServiceRes = nbundefined.implementAccessParameterBizField(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }
      }
else if((reqDto!= null&&  reqDto.getTableTypeCode() !=null && reqDto.getTableTypeCode().equals("OMS_TARGET_OBJECTIVE")&&reqDto!= null&& reqDto.getLevelNumber() > 1L)){
       //elseif((D3执行分析目标内容操作超级管理场景(公共).内容表类型编码 等于 指标表 and D3执行分析目标内容操作超级管理场景(公共).层级 大于 1))  28755

OmsTargetObjective omsTargetObjective = null;
    QueryTargetObjDetailReq queryTargetObjDetailReq=new QueryTargetObjDetailReq();
  if(reqDto!=null){
      queryTargetObjDetailReq.setObjectiveId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:651371_1_28756
queryTargetObjDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:651372_1_28756
    }

    /*3-3-03查指标归属父级指标ID[2697]   */
    Assert.isNull(queryTargetObjDetailReq.getObjectiveId(),"D3执行分析目标内容操作超级管理场景(公共)-3-3-03查指标归属父级指标ID-指标ID不能为空",false);
Assert.isNull(queryTargetObjDetailReq.getEvaluationTemplateId(),"D3执行分析目标内容操作超级管理场景(公共)-3-3-03查指标归属父级指标ID-冗余评价模板ID不能为空",false);
      omsTargetObjective = mOmsTargetObjectiveService.queryTargetObjDetail(queryTargetObjDetailReq);



OmsVirtualOrgMemberDept omsVirtualOrgMemberDept = null;
    if(omsTargetObjective !=null){
          QueryVirtualOrgMemberDeptDetailReq queryVirtualOrgMemberDeptDetailReq=new QueryVirtualOrgMemberDeptDetailReq();
  queryVirtualOrgMemberDeptDetailReq.setDeptType("LEAD_DEPT");//sourceId:651373_1_28789
queryVirtualOrgMemberDeptDetailReq.setEvaluationTemplateType("EVA_TEMP");//sourceId:651396_1_28789
queryVirtualOrgMemberDeptDetailReq.setIsArchive("FALSE");//sourceId:651378_1_28789
if(reqDto!=null){
      queryVirtualOrgMemberDeptDetailReq.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:651384_1_28789
queryVirtualOrgMemberDeptDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:651397_1_28789
    }
if(omsTargetObjective!=null){
      queryVirtualOrgMemberDeptDetailReq.setEntityId(omsTargetObjective.getParentObjectiveId());//SimpleFieldAssign//sourceId:651385_1_28789
    }

    /*3-6-03查虚拟成员部门详情[2518]   */
    Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getTableTypeCode(),"D3执行分析目标内容操作超级管理场景(公共)-3-6-03查虚拟成员部门详情-冗余内容表类型编码不能为空",false);
Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getEntityId(),"D3执行分析目标内容操作超级管理场景(公共)-3-6-03查虚拟成员部门详情-冗余内容表主键ID不能为空",false);
Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getDeptType(),"D3执行分析目标内容操作超级管理场景(公共)-3-6-03查虚拟成员部门详情-部门类型编码不能为空",false);
Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getEvaluationTemplateType(),"D3执行分析目标内容操作超级管理场景(公共)-3-6-03查虚拟成员部门详情-归属对象类型不能为空",false);
Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getEvaluationTemplateId(),"D3执行分析目标内容操作超级管理场景(公共)-3-6-03查虚拟成员部门详情-归属对象ID不能为空",false);
Assert.isNull(queryVirtualOrgMemberDeptDetailReq.getIsArchive(),"D3执行分析目标内容操作超级管理场景(公共)-3-6-03查虚拟成员部门详情-是否存档不能为空",false);
      omsVirtualOrgMemberDept = mOmsVirtualOrgMemberDeptService.queryVirtualOrgMemberDeptDetail(queryVirtualOrgMemberDeptDetailReq);



           }
QueryDeptTreeRootNodeDetailComRespDto queryDeptTreeRootNodeDetailComRespDto = null;
    if(omsVirtualOrgMemberDept !=null){
          QueryDeptTreeRootNodeDetailComReqDto queryDeptTreeRootNodeDetailComReqDto=new QueryDeptTreeRootNodeDetailComReqDto();
  if(omsVirtualOrgMemberDept!=null){
      queryDeptTreeRootNodeDetailComReqDto.setDeptId(omsVirtualOrgMemberDept.getDeptId());//SimpleFieldAssign//sourceId:651408_1_28792
    }
if(reqDto!=null){
      queryDeptTreeRootNodeDetailComReqDto.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:651409_1_28792
queryDeptTreeRootNodeDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:651410_1_28792
    }

    /*D3查询部门树根节点(公共)[5028]   */
    Assert.isNull(queryDeptTreeRootNodeDetailComReqDto.getDeptId(),"D3执行分析目标内容操作超级管理场景(公共)-D3查询部门树根节点(公共)-部门ID不能为空",false);
Assert.isNull(queryDeptTreeRootNodeDetailComReqDto.getTargetId(),"D3执行分析目标内容操作超级管理场景(公共)-D3查询部门树根节点(公共)-目标ID不能为空",false);
Assert.isNull(queryDeptTreeRootNodeDetailComReqDto.getEvaluationTemplateId(),"D3执行分析目标内容操作超级管理场景(公共)-D3查询部门树根节点(公共)-冗余评价模板ID不能为空",false);
      queryDeptTreeRootNodeDetailComRespDto = targetCycleService.queryDeptTreeRootNodeDetailCom(queryDeptTreeRootNodeDetailComReqDto);



           }
OmsEvaBatchRelatedSet omsEvaBatchRelatedSet_2 = null;
    if(queryDeptTreeRootNodeDetailComRespDto !=null){
          QueryPlanEvaBatchSetDetailReq queryPlanEvaBatchSetDetailReq_1=new QueryPlanEvaBatchSetDetailReq();
  if(queryDeptTreeRootNodeDetailComRespDto!=null){
      queryPlanEvaBatchSetDetailReq_1.setBatchSetId(queryDeptTreeRootNodeDetailComRespDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:651417_1_28796
queryPlanEvaBatchSetDetailReq_1.setBatchSetObjectType(queryDeptTreeRootNodeDetailComRespDto.getBatchOptTypeCode());//SimpleFieldAssign//sourceId:651439_1_28796
    }

    /*3-3-09-03查询部门根节点评价模板批次设置详情[2998]   */
    Assert.isNull(queryPlanEvaBatchSetDetailReq_1.getBatchSetId(),"D3执行分析目标内容操作超级管理场景(公共)-3-3-09-03查询部门根节点评价模板批次设置详情-批次设置对象ID不能为空",false);
Assert.isNull(queryPlanEvaBatchSetDetailReq_1.getBatchSetObjectType(),"D3执行分析目标内容操作超级管理场景(公共)-3-3-09-03查询部门根节点评价模板批次设置详情-批次设置对象类型不能为空",false);
      omsEvaBatchRelatedSet_2 = mOmsEvaBatchRelatedSetService.queryPlanEvaBatchSetDetail(queryPlanEvaBatchSetDetailReq_1);
      Assert.isTrue(omsEvaBatchRelatedSet_2== null||  omsEvaBatchRelatedSet_2.getBatchRelatedSetId() ==null,"找不到数据，系统异常",false);


           }
//ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes_2 = null;
    if(omsEvaBatchRelatedSet_2 !=null){
          ImplementAccessParameterBizFieldReqDto receptionServiceReq_1=new ImplementAccessParameterBizFieldReqDto();
  if(omsEvaBatchRelatedSet_2!=null){
      receptionServiceReq_1.setMgtType(omsEvaBatchRelatedSet_2.getMgtType());//SimpleFieldAssign//sourceId:651509_1_28805
//receptionServiceReq_1.setIsSuperMgt(omsEvaBatchRelatedSet_2.getIsSuperMgt());//SimpleFieldAssign//sourceId:651510_1_28805
    }

    /*M3接收出参字段[5797]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getMgtType(),"D3执行分析目标内容操作超级管理场景(公共)-M3接收出参字段-管理类型不能为空",false);
Assert.isNull(receptionServiceReq_1.getIsSuperMgt(),"D3执行分析目标内容操作超级管理场景(公共)-M3接收出参字段-是否超级管理不能为空",false);
      receptionServiceRes_2 = nbundefined.implementAccessParameterBizField(receptionServiceReq_1);


      receptionServiceRes_1 = receptionServiceRes_2;
           }
    }
//processBranchName:正常结束 ,processBranchId:28798

ImplementAnalyseTargetContOperateSuperMgtSceneComRespDto retData = new ImplementAnalyseTargetContOperateSuperMgtSceneComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setMgtType(receptionServiceRes_1.getMgtType());//SimpleFieldAssign//sourceId:651515_1
retData.setIsSuperMgt(receptionServiceRes_1.getIsSuperMgt());//SimpleFieldAssign//sourceId:651516_1
    }




return retData;
  }
/**
   * D3统计工作周期成果数(公共)[9279]
   * gen by moon at 4/5/2024, 9:36:59 PM
   */
  @Trace(operationName = "D3统计工作周期成果数(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public StatisticsWorkCycleAchievementNumsComRespDto statisticsWorkCycleAchievementNumsCom(StatisticsWorkCycleAchievementNumsComReqDto reqDto){


      ImplementEightReceivingFieldRespDto receptionServiceRes_1 =null;
if((reqDto!= null&& reqDto.getCycleStartTime() != null &&reqDto!= null&& reqDto.getCycleEndTime() != null )) {
        //if((D4执行部门目标周期成果统计(公共).目标计划开始时间 值不等于空  and D4执行部门目标周期成果统计(公共).目标计划结束时间 值不等于空 ))  66117

if((reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("PROCESS_CYCLE")||reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("SUB_CYCLE"))) {
        //if((D4执行部门目标周期成果统计(公共).父子中周期类型 等于 过程周期 or D4执行部门目标周期成果统计(公共).父子中周期类型 等于 子周期))  66123

StatisticsAchievementNumComRespDto statisticsAchievementNumComRespDto = null;
    StatisticsAchievementNumComReqDto statisticsAchievementNumComReqDto=new StatisticsAchievementNumComReqDto();
  statisticsAchievementNumComReqDto.setIsSymbolicAchievement("TRUE");//sourceId:1697287_1_66126
statisticsAchievementNumComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1697288_1_66126
if(reqDto!=null){
      statisticsAchievementNumComReqDto.setAchievementBelongBodyId(reqDto.getAchievementBelongBodyId());//SimpleFieldAssign//sourceId:1697291_1_66126
statisticsAchievementNumComReqDto.setTargetCycleContentCode(reqDto.getTargetContentCode());//SimpleFieldAssign//sourceId:1698536_1_66126
statisticsAchievementNumComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1697286_1_66126
statisticsAchievementNumComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1697282_1_66126
statisticsAchievementNumComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1697289_1_66126
    }

    /*D3统计成果数(公共)[9276]   */
    Assert.isNull(statisticsAchievementNumComReqDto.getCycleId(),"D3统计工作周期成果数(公共)-D3统计成果数(公共)-归属子周期周期ID不能为空",false);
Assert.isNull(statisticsAchievementNumComReqDto.getEvaluationTemplateId(),"D3统计工作周期成果数(公共)-D3统计成果数(公共)-归属评价模板ID不能为空",false);
Assert.isNull(statisticsAchievementNumComReqDto.getIsSymbolicAchievement(),"D3统计工作周期成果数(公共)-D3统计成果数(公共)-是否标志性成果不能为空",false);
Assert.isNull(statisticsAchievementNumComReqDto.getSubjectLifeCycle(),"D3统计工作周期成果数(公共)-D3统计成果数(公共)-主体生命周期不能为空",false);
Assert.isNull(statisticsAchievementNumComReqDto.getSpaceId(),"D3统计工作周期成果数(公共)-D3统计成果数(公共)-创建于空间ID不能为空",false);
      statisticsAchievementNumComRespDto = achievementDockService.statisticsAchievementNumCom(statisticsAchievementNumComReqDto)/*vcase invoke isSameApp*/;



//ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes = null;
    if(statisticsAchievementNumComRespDto !=null){
          ImplementEightReceivingFieldReqDto receptionServiceReq=new ImplementEightReceivingFieldReqDto();
  if(statisticsAchievementNumComRespDto!=null){
      receptionServiceReq.setCalcCount(statisticsAchievementNumComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:1698849_1_66165
    }
if(statisticsAchievementNumComRespDto!= null&&  statisticsAchievementNumComRespDto.getAchievementDockingList() !=null&& !CollectionUtil.isEmpty(statisticsAchievementNumComRespDto.getAchievementDockingList())){
      receptionServiceReq.setAchievementDockingList(statisticsAchievementNumComRespDto.getAchievementDockingList().stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1698982_1_66165
    }

    /*M3接收出参字段[8691]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCalcCount(),"D3统计工作周期成果数(公共)-M3接收出参字段-统计数不能为空",false);
      receptionServiceRes = nbundefined.implementEightReceivingField(receptionServiceReq);


      receptionServiceRes_1 = receptionServiceRes;
           }
      }
else if((reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("PARENT_CYCLE")||reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("MID_CYCLE"))){
       //elseif((D4执行部门目标周期成果统计(公共).父子中周期类型 等于 父周期 or D4执行部门目标周期成果统计(公共).父子中周期类型 等于 中期))  66124

QueryTargetContentSubCycleListComRespDto queryTargetContentSubCycleListComRespDto = null;
    QueryTargetContentSubCycleListComReqDto queryTargetContentSubCycleListComReqDto=new QueryTargetContentSubCycleListComReqDto();
  if(reqDto!=null){
      queryTargetContentSubCycleListComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1698586_1_66127
queryTargetContentSubCycleListComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1697542_1_66127
queryTargetContentSubCycleListComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1698565_1_66127
queryTargetContentSubCycleListComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1697544_1_66127
queryTargetContentSubCycleListComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1697545_1_66127
queryTargetContentSubCycleListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1697546_1_66127
    }

    /*D3查询目标子周期列表(公共)[9280]   */
    Assert.isNull(queryTargetContentSubCycleListComReqDto.getEvaObjTypeCode(),"D3统计工作周期成果数(公共)-D3查询目标子周期列表(公共)-被评对象类型编码不能为空",false);
Assert.isNull(queryTargetContentSubCycleListComReqDto.getTargetCycleContentId(),"D3统计工作周期成果数(公共)-D3查询目标子周期列表(公共)-关联目标内容ID不能为空",false);
Assert.isNull(queryTargetContentSubCycleListComReqDto.getCycleStartTime(),"D3统计工作周期成果数(公共)-D3查询目标子周期列表(公共)-目标计划开始时间不能为空",false);
Assert.isNull(queryTargetContentSubCycleListComReqDto.getCycleEndTime(),"D3统计工作周期成果数(公共)-D3查询目标子周期列表(公共)-目标计划结束时间不能为空",false);
Assert.isNull(queryTargetContentSubCycleListComReqDto.getEvaluationTemplateId(),"D3统计工作周期成果数(公共)-D3查询目标子周期列表(公共)-冗余评价模板ID不能为空",false);
      queryTargetContentSubCycleListComRespDto = targetContentService.queryTargetContentSubCycleListCom(queryTargetContentSubCycleListComReqDto)/*vcase invoke isSameApp*/;



BatchStatisticsAchievementNumComRespDto batchStatisticsAchievementNumComRespDto = null;
    if(queryTargetContentSubCycleListComRespDto !=null){
          BatchStatisticsAchievementNumComReqDto batchStatisticsAchievementNumComReqDto=new BatchStatisticsAchievementNumComReqDto();
  batchStatisticsAchievementNumComReqDto.setIsSymbolicAchievement("TRUE");//sourceId:1697711_1_66137
batchStatisticsAchievementNumComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1697717_1_66137
if(queryTargetContentSubCycleListComRespDto!= null&&  queryTargetContentSubCycleListComRespDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(queryTargetContentSubCycleListComRespDto.getEvaObjTargetCycleList())){
      batchStatisticsAchievementNumComReqDto.setEvaObjTargetCycleList(queryTargetContentSubCycleListComRespDto.getEvaObjTargetCycleList().stream().map(item->item.getCycleId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1697710_1_66137
    }
if(reqDto!=null){
      batchStatisticsAchievementNumComReqDto.setAchievementBelongBodyId(reqDto.getAchievementBelongBodyId());//SimpleFieldAssign//sourceId:1697715_1_66137
batchStatisticsAchievementNumComReqDto.setTargetCycleContentCode(reqDto.getTargetContentCode());//SimpleFieldAssign//sourceId:1698537_1_66137
batchStatisticsAchievementNumComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1697714_1_66137
batchStatisticsAchievementNumComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1697718_1_66137
    }

    /*D3批量统计成果数(公共)[9283]   */
    Assert.isNull(batchStatisticsAchievementNumComReqDto.getEvaluationTemplateId(),"D3统计工作周期成果数(公共)-D3批量统计成果数(公共)-归属评价模板ID不能为空",false);
Assert.isNull(batchStatisticsAchievementNumComReqDto.getIsSymbolicAchievement(),"D3统计工作周期成果数(公共)-D3批量统计成果数(公共)-是否标志性成果不能为空",false);
Assert.isNull(batchStatisticsAchievementNumComReqDto.getSubjectLifeCycle(),"D3统计工作周期成果数(公共)-D3批量统计成果数(公共)-主体生命周期不能为空",false);
Assert.isNull(batchStatisticsAchievementNumComReqDto.getSpaceId(),"D3统计工作周期成果数(公共)-D3批量统计成果数(公共)-创建于空间ID不能为空",false);
      batchStatisticsAchievementNumComRespDto = achievementDockService.batchStatisticsAchievementNumCom(batchStatisticsAchievementNumComReqDto)/*vcase invoke isSameApp*/;



           }
//ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes_2 = null;
    if(batchStatisticsAchievementNumComRespDto !=null){
          ImplementEightReceivingFieldReqDto receptionServiceReq_1=new ImplementEightReceivingFieldReqDto();
  //todo dong 未找到匹配生成策略,请检查生成策略receptionServiceReq_1.setAchievementDockingList(batchStatisticsAchievementNumComRespDto.getAchievementDockingList().getAchievementDockingId()),数据源项; to( ==>tableName:undefined, fieldEnname:achievementDockingList ,uniqueId: 1698982_1_66166 uniqueSourceId:335087_2_66137) from (varName: fieldbatchStatisticsAchievementNumComRespDto.getAchievementDockingList().getAchievementDockingId())
if(batchStatisticsAchievementNumComRespDto!=null){
      receptionServiceReq_1.setCalcCount(batchStatisticsAchievementNumComRespDto.getCalcCount());//SimpleFieldAssign//sourceId:1698849_1_66166
    }

    /*M3接收出参字段[8691]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq_1.getCalcCount(),"D3统计工作周期成果数(公共)-M3接收出参字段-统计数不能为空",false);
      receptionServiceRes_2 = nbundefined.implementEightReceivingField(receptionServiceReq_1);


      receptionServiceRes_1 = receptionServiceRes_2;
           }
    }
      }
StatisticsWorkCycleAchievementNumsComRespDto retData = new StatisticsWorkCycleAchievementNumsComRespDto();
  if(receptionServiceRes_1!=null){
      retData.setCalcCount(receptionServiceRes_1.getCalcCount());//SimpleFieldAssign//sourceId:1698991_1
retData.setAchievementDockingList(receptionServiceRes_1.getAchievementDockingList().stream().map(item -> BeanUtil.toBean(item, AchievementDockingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1698994_1
    }




return retData;
  }
/**
   * D3查询目标内容父或中周期详情(公共)[9287]
   * gen by moon at 4/5/2024, 9:13:27 PM
   */
  @Trace(operationName = "D3查询目标内容父或中周期详情(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public QueryTargetContParentOrMidCycleDetailComRespDto queryTargetContParentOrMidCycleDetailCom(QueryTargetContParentOrMidCycleDetailComReqDto reqDto){


      ImplementEightReceivingFieldRespDto receptionServiceRes_3 =null;
//virtualUsage M3约定是  66156
      //ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes = null;
    ImplementEightReceivingFieldReqDto receptionServiceReq=new ImplementEightReceivingFieldReqDto();
  receptionServiceReq.setCustomField1("TRUE");//CUSTOM_CONVENTION//sourceId:1698296_1_66156

    /*M3约定是[8691]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField1(),"D3查询目标内容父或中周期详情(公共)-M3约定是-自定义字段1不能为空",false);
      receptionServiceRes = nbundefined.implementEightReceivingField(receptionServiceReq);



if((reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("PARENT_CYCLE"))) {
        //if(D3查询目标内容父或中周期详情(公共).父子中周期类型 等于 父周期)  66150

QueryTargetContetCycleDetailComRespDto queryTargetContetCycleDetailComRespDto = null;
    QueryTargetContetCycleDetailComReqDto queryTargetContetCycleDetailComReqDto=new QueryTargetContetCycleDetailComReqDto();
  if(reqDto!=null){
      queryTargetContetCycleDetailComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1698096_1_66151
queryTargetContetCycleDetailComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1698097_1_66151
queryTargetContetCycleDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1698352_1_66151
queryTargetContetCycleDetailComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1698099_1_66151
queryTargetContetCycleDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1698100_1_66151
    }
if(receptionServiceRes!=null){
      queryTargetContetCycleDetailComReqDto.setIsParentCycle(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1698349_1_66151
    }

    /*D3查询目标内容周期详情(公共)[9284]   */
    Assert.isNull(queryTargetContetCycleDetailComReqDto.getEvaObjTypeCode(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-被评对象类型编码不能为空",false);
Assert.isNull(queryTargetContetCycleDetailComReqDto.getTargetCycleContentTypeCode(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(queryTargetContetCycleDetailComReqDto.getEvaluationTemplateId(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetContetCycleDetailComReqDto.getSubjectLifeCycle(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-主体生命周期不能为空",false);
Assert.isNull(queryTargetContetCycleDetailComReqDto.getSpaceId(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-创建于空间ID不能为空",false);
      queryTargetContetCycleDetailComRespDto = targetCalcService.queryTargetContetCycleDetailCom(queryTargetContetCycleDetailComReqDto)/*vcase invoke isSameApp*/;



//ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes_2 = null;
    if(queryTargetContetCycleDetailComRespDto !=null){
          ImplementEightReceivingFieldReqDto receptionServiceReq_1=new ImplementEightReceivingFieldReqDto();
  if(queryTargetContetCycleDetailComRespDto!=null){
      receptionServiceReq_1.setEvaObjTargetCycleId(queryTargetContetCycleDetailComRespDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1698546_1_66162
receptionServiceReq_1.setCycleId(queryTargetContetCycleDetailComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1698547_1_66162
receptionServiceReq_1.setCycleStartTime(queryTargetContetCycleDetailComRespDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1698548_1_66162
receptionServiceReq_1.setCycleEndTime(queryTargetContetCycleDetailComRespDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1698549_1_66162
    }

    /*M3接收被评对象目标周期字段出参[8691]  用于特殊方法接收上游入参。 */

      receptionServiceRes_2 = nbundefined.implementEightReceivingField(receptionServiceReq_1);


      receptionServiceRes_3 = receptionServiceRes_2;
           }
      }
else if((reqDto!= null&&  reqDto.getParentSubMidCycleType() !=null && reqDto.getParentSubMidCycleType().equals("MID_CYCLE"))){
       //elseif(D3查询目标内容父或中周期详情(公共).父子中周期类型 等于 中期)  66157

QueryTargetContetCycleDetailComRespDto queryTargetContetCycleDetailComRespDto_2 = null;
    QueryTargetContetCycleDetailComReqDto queryTargetContetCycleDetailComReqDto_1=new QueryTargetContetCycleDetailComReqDto();
  if(reqDto!=null){
      queryTargetContetCycleDetailComReqDto_1.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1698096_1_66159
queryTargetContetCycleDetailComReqDto_1.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1698097_1_66159
queryTargetContetCycleDetailComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1698352_1_66159
queryTargetContetCycleDetailComReqDto_1.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1698099_1_66159
queryTargetContetCycleDetailComReqDto_1.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1698100_1_66159
    }
if(receptionServiceRes!=null){
      queryTargetContetCycleDetailComReqDto_1.setIsMetaphase(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1698350_1_66159
    }

    /*D3查询目标内容周期详情(公共)[9284]   */
    Assert.isNull(queryTargetContetCycleDetailComReqDto_1.getEvaObjTypeCode(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-被评对象类型编码不能为空",false);
Assert.isNull(queryTargetContetCycleDetailComReqDto_1.getTargetCycleContentTypeCode(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(queryTargetContetCycleDetailComReqDto_1.getEvaluationTemplateId(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(queryTargetContetCycleDetailComReqDto_1.getSubjectLifeCycle(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-主体生命周期不能为空",false);
Assert.isNull(queryTargetContetCycleDetailComReqDto_1.getSpaceId(),"D3查询目标内容父或中周期详情(公共)-D3查询目标内容周期详情(公共)-创建于空间ID不能为空",false);
      queryTargetContetCycleDetailComRespDto_2 = targetCalcService.queryTargetContetCycleDetailCom(queryTargetContetCycleDetailComReqDto_1)/*vcase invoke isSameApp*/;



//ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes_4 = null;
    if(queryTargetContetCycleDetailComRespDto_2 !=null){
          ImplementEightReceivingFieldReqDto receptionServiceReq_2=new ImplementEightReceivingFieldReqDto();
  if(queryTargetContetCycleDetailComRespDto_2!=null){
      receptionServiceReq_2.setEvaObjTargetCycleId(queryTargetContetCycleDetailComRespDto_2.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1698546_1_66161
receptionServiceReq_2.setCycleId(queryTargetContetCycleDetailComRespDto_2.getCycleId());//SimpleFieldAssign//sourceId:1698547_1_66161
receptionServiceReq_2.setCycleStartTime(queryTargetContetCycleDetailComRespDto_2.getCycleStartTime());//SimpleFieldAssign//sourceId:1698548_1_66161
receptionServiceReq_2.setCycleEndTime(queryTargetContetCycleDetailComRespDto_2.getCycleEndTime());//SimpleFieldAssign//sourceId:1698549_1_66161
    }

    /*M3接收被评对象目标周期字段出参[8691]  用于特殊方法接收上游入参。 */

      receptionServiceRes_4 = nbundefined.implementEightReceivingField(receptionServiceReq_2);


      receptionServiceRes_3 = receptionServiceRes_4;
           }
    }
QueryTargetContParentOrMidCycleDetailComRespDto retData = new QueryTargetContParentOrMidCycleDetailComRespDto();
  if(receptionServiceRes_3!=null){
      retData.setEvaObjTargetCycleId(receptionServiceRes_3.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1698559_1
retData.setCycleId(receptionServiceRes_3.getCycleId());//SimpleFieldAssign//sourceId:1698560_1
retData.setCycleStartTime(receptionServiceRes_3.getCycleStartTime());//SimpleFieldAssign//sourceId:1698561_1
retData.setCycleEndTime(receptionServiceRes_3.getCycleEndTime());//SimpleFieldAssign//sourceId:1698562_1
    }




return retData;
  }
  //
}
